!!! Strict
%html
  %head
    %title
      = yield :title
      &ndash; dan stewart photography
    %meta{"http-equiv".to_sym => "Content-Language", :content => "en-us"}
    %meta{"http-equiv".to_sym => "Content-Type", :content => "text/html;charset=UTF-8"} 
    %meta{:name => "copyright", :content => "All content is copyright of Dan Stewart"}
    %meta{:name => "robots", :content => "FOLLOW,INDEX"}    
    %meta{:name => "author", :content => "Dan Stewart"}
    %meta{:name => "verify-v1", :content => "covfVo1vle2ObVmhJz1HGojORXQpl907ZUI4Chl06lg="}
    = yield :meta
    %link{:rel => "shortcut icon", :href => "/danstewartphotography.ico"}
    = stylesheet_link_tag 'reset'
    = stylesheet_link_tag 'style'
    = yield :head
  %body
    #hd
      %p
      %p.site_description
        = yield :page_description
      %ul.spider_site_nav
        %li
          %a{:href => photos_url, :title => "see dan stewart's photos"} Photos
        %li
          %a{:href => videos_url, :title => "see dan stewart's videos"} Videos
        %li
          %a{:href => galleries_url, :title => "see dan stewart's galleries"} Galleries
        %li
          %a{:href => comments_url, :title => "see the comments people are leaving about dan stewart's photos and videos"} Comments
      #user_specific_info
        #session
          - if logged_in?
            %p
              Hi
              %a{:href => edit_user_url(current_user)}
                = current_user.login
              |
              %a{:href => logout_url, :title => "Logout"}Logout
              |
              %a{:href => user_orders_url, :title => "Your Shopping Cart"}shopping cart
          - else
            %p
              %a{:href => login_url} login
              |
              %a{:href => signup_url} signup
      %a.title{:href => '/',:title => "dan stewart photography"}
        dan stewart photography
    #sidenav
      - if logged_in? && current_user.is_admin?
        #admin_nav{:style => "display: block"}
          %p
            %a{:href => photos_url} Photos
            %a{:href => new_photo_url} Upload
          %p
            %a{:href => videos_url} Videos
            %a{:href => new_video_url} Upload
          %p
            %a{:href => users_url} Users
            %a{:href => new_user_url} Create
          %p
            %a{:href => galleries_url} Galleries
            %a{:href => new_gallery_url} New
          %p
            %a{:href => pages_url} Pages
            %a{:href => new_page_url} New
          %p
            %a{:href => comments_url} Comments
          %p
            %a{:href => orders_url} Orders
          %p
            %a{:href => settings_url} Settings
          = yield :admin_nav
    #bd
      #header_bar
        %table.menu_items
          %tr
            - menu_items.each do |menu_item|
              %td.menu_item
                %a.menu_item{:href => menu_item.link, :title => menu_item.item, :class => ("current_page" if (request.request_uri == menu_item.link))}=menu_item.item
      #content
        - if flash[:error]
          %div.error= flash[:error]
        - if flash[:update]
          %div.update= flash[:update]
        = yield
    #ft
      #ft_spacer
        #ft_spacer_content 
          %a{:href => "mailto:dan@danstewartphotography.com", :title => "E-mail me"} dan@danstewartphotography.com
          = "| tel: 231.432.8294 | © dan stewart #{Time.now.strftime("%Y")}"
          %br
          %a{:href => "http://maps.google.com/maps?f=q&hl=en&geocode=&q=2466+S.+Cherry+Tree+Lane,+Suttons+Bay,+MI&sll=44.944314,-85.605104&sspn=0.007047,0.019312&ie=UTF8&g=2466+S.+Cherry+Tree+Lane,+Suttons+Bay,+MI&ll=44.95095,-85.60092&spn=0.02126,0.036478&z=14&iwloc=addr&source=embed", :title => "Location of Dan Stewart Photography"}
            2466 S. Cherry Tree Ln. Suttons Bay Michigan 49682
      #search
        - form_tag search_url, :method => 'get' do
          = text_field_tag :term, params[:term]
          = submit_tag "search", :name => nil
  %script{:type => "text/javascript"}
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  %script{:type => "text/javascript"}
    var pageTracker = _gat._getTracker("UA-3555480-1");
    pageTracker._initData();
    pageTracker._trackPageview();